<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
	String hospitalSurveyInfectionInfoJson = (String) request.getAttribute("hospitalSurveyInfectionInfoJson");
	String respondResultJson = (String) request.getAttribute("respondResultJson");
%>
<link rel="stylesheet"
	href="${basePath}assets/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css" />
<link rel="stylesheet"
	href="${basePath}assets/css/coding_attached/edit_index_info.css" />

<script type="text/javascript"
	src="${basePath}assets/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/layer/layer.js"></script>
<script type="text/javascript"
	src="${basePath}assets/cityselect/cityselect/cityselect.js"></script>
<script type="text/javascript" src="${basePath}assets/js/header.js"></script>

<script type="text/javascript" src="${basePath}assets/js/iframe.js"></script>
<script type="text/javascript"
	src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.data.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.js"></script>
<script src="${basePath}assets/distpicker/js/main.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/jquery.validate.js"></script>

<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/localization/messages_zh.js"></script>
<script type="text/javascript"
	src="${basePath}assets/js/coding_attached/edit_hospital_survey_infection_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form action="${basePath}medical_record_attached_coding/edit_hospital_survey_infection_info"
	method="post" id="hospitalSurveyInfectionInfoForm">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<table style="width:99%;">
		<thead>
			<tr>
				<td colspan="7"><input type="button" onclick="formSubmit(this)" value="保存" class="btn" disabled="disabled">
				</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="tdLabel_10_label" rowspan="2">医院感染</td>
				<td class="tdLabel_30_value" colspan="2">
					是否发生院内感染:
					<input type="radio" class="radio_cl" name="whetherHospitalInfectionCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="whetherHospitalInfectionCode" title="否" value="2"/>
						否 
					<input type="hidden" name="whetherHospitalInfectionName"/>
				</td>

				<td class="tdLabel_30_value" colspan="4">
					院内感染的细菌名称:&nbsp;&nbsp;
					<!-- <select name="infectionCellCode" data-type="infectionCell" style="width: 40%">
					</select> -->
					<input type="text" name="infectionCellName">
				</td>
				
			</tr>
			
			<tr>
				<td class="tdLabel_30_value" colspan="2">
					院内感染的部位:&nbsp;&nbsp;<select name="infectionPartCode" data-type="infectionPart" style="width: 60%">
					</select>
					<input type="hidden" name="infectionPartName">
				</td>

				<td class="tdLabel_30_value" colspan="2">
					院内感染的次数:&nbsp;&nbsp;
					<!-- <select name="infectionTimeCode" data-type="infectionTime" style="width: 60%"></select> -->
					<input type="text" name="infectionTime" />
				</td>
				<td class="tdLabel_30_value" colspan="2">
					院内感染治疗效果:&nbsp;&nbsp;
					<select name="curativeEffectCode" data-type="curativeEffect" style="width: 60%"></select>
					<input type="hidden" name="curativeEffectName" />
				</td>
				
				
			</tr>
		</tbody>
	</table>
</form>

<script>
	$(function(){
		var hospitalSurveyInfectionInfoJson = <%=hospitalSurveyInfectionInfoJson%>;
		var respondResultJson = <%=respondResultJson%>
		if(respondResultJson){
			if(respondResultJson.success){
				layer.msg("保存成功");
			}else{
				layer.msg("保存失败");
			}
		}
		console.log(hospitalSurveyInfectionInfoJson);
		initPage(hospitalSurveyInfectionInfoJson);
		$("input[type='button']").removeAttr("disabled");
	});
</script>